package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.AccidentImageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车辆事故图片表 Mapper 接口
 * </p>
 *
 * @author xuelin yi
 * @since 2019-09-04
 */
public interface AccidentImageMapper extends RootMapper<AccidentImageBean> {

    /**
     * 根据事故id集合获取图片信息
     * @param accidentId
     * @param types
     * @return
     */
    List<AccidentImageBean> getCarAccidentImageList(@Param("accidentId") Integer accidentId, @Param("types") List<Integer> types);

    /**
     * 创建事故图片信息
     * @param accidentImageBean
     * @return
     */
    int createAccidentImage(AccidentImageBean accidentImageBean);

    /**
     * 删除事故图片
     * @param accidentId
     * @param type
     * @return
     */
    int deleteAccidentImage(@Param("accidentId")Integer accidentId,@Param("type") Integer type);
}
